table.HANDLE Function

Syntax

Handle as N = Handle()

Description

Get the tables an old style 'handle'.

Discussion

The <TBL>.HANDLE() method returns the ancient style (Version 1) handle when using a post-version 3 style Xbasic object. This allows the Xbasic programmer to reuse Version 1 code on tables that they opened using the newer object methods.

Example

Newer style Xbasic.

dim tbl as P
dim shared db_handle as N
tbl = table.open("Invoice_header")
' Call a version one script that reads a shared db_handle
db_handle = tbl.handle()

See Also